import request from '@/utils/request'

export function fetchFileServerList(data) {
  return request({
    url: '/cloud-system/getFileServerList',
    method: 'post',
    data
  })
}

export function fetchFileServerOne(data) {
  return request({
    url: '/cloud-system/getOneFileServerDetail',
    method: 'post',
    data
  })
}

export function createFileServer(data) {
  return request({
    url: '/cloud-system/createOneFileServer',
    method: 'post',
    data
  })
}

export function updateFileServer(data) {
  return request({
    url: '/cloud-system/updateOneFileServer',
    method: 'post',
    data
  })
}

export function deleteFileServer(data) {
  return request({
    url: '/cloud-system/deleteOneFileServer',
    method: 'post',
    data
  })
}
export function batchDeleteFileServer(data) {
  return request({
    url: '/cloud-system/batchDeleteFileServer',
    method: 'post',
    data
  })
}

export function lockFileServer(data) {
  return request({
    url: '/cloud-system/lockOneFileServer',
    method: 'post',
    data
  })
}

export function unlockFileServer(data) {
  return request({
    url: '/cloud-system/unlockOneFileServer',
    method: 'post',
    data
  })
}

export function batchLockFileServer(data) {
  return request({
    url: '/cloud-system/batchLockFileServer',
    method: 'post',
    data
  })
}

export function batchUnLockFileServer(data) {
  return request({
    url: '/cloud-system/batchUnLockFileServer',
    method: 'post',
    data
  })
}
